#pragma once
#include <iostream>
#include "../http/cwhttprequest.h"
#include "business.h"
#include "loginbusiness.h"
#include "signupbusiness.h"

enum class Type : char
{
    kLoginRequest,
    kSignupRequest,
    kErrorRequest
};

class BusinessFactory
{
public:
    BusinessFactory() = default;
    ~BusinessFactory() = default;
    Business *createBusiness(CWHttpRequest &request);

private:
    Type getEnumType(CWHttpRequest &request);
};